package oop.core.view;

import java.awt.Dimension;
import java.awt.Point;

import javax.swing.JPanel;

public class SizeablePanel extends JPanel {

	private Dimension SIZE;
	private Point LOCATION;
	
	public SizeablePanel(Dimension size)
	{
		this(new Point(0,0), size);
	}
	
	public SizeablePanel(Point location, Dimension size)
	{
		this.LOCATION = location;
		this.SIZE = size;
		
		setLocation(location);
		setSize(size);
		setVisible(true);
		setLayout(null);
		setDoubleBuffered(true);
		setFocusable(true);
	}
	
	public Dimension getDimension()
	{
		return SIZE;
	}
	
	public Point getLocation()
	{
		return LOCATION;
	}
}
